package com.it.aiReportClaim;

import com.it.entity.report.AiClaimReport;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import utils.R;

import java.math.BigDecimal;

@FeignClient(value = "ai-claim-report")
public interface ReportClaimApi {

    @PutMapping("aiClaimReport/updateStatus")
    R updateStatus(@RequestParam String reportNo, @RequestParam Integer reportStatus);


    @PutMapping("aiClaimReport/update")
    R dispatchUpdate(@RequestParam String reportNo, @RequestParam Integer reportStatus, @RequestParam Integer workOutStatus);

    @GetMapping("aiClaimReport/selectOne")
    AiClaimReport selectOne(@RequestParam(value = "reportNo") String reportNo);

    @PostMapping("aiClaimReport/add")
    AiClaimReport add(@RequestBody AiClaimReport aiClaimReport,
                      @RequestParam BigDecimal lossEstimate);
}
